// API: 一张图接口

import request from '@/utils/request'

/**
 * 获取当日航班路线数据
 * @param {*} query 
 * @returns 
 */
export function selectResourcesByType(type) {
  return request({
    url: '/baseinfo/aerodrome/selectResourcesByType/' + type,
    method: 'get'
  })
}

/**
 * 查询飘降算法结果列表
 * @param {*} type 
 * @returns 
 */
export function queryFallImitateResultList(query) {
  return request({
    url: '/algorithm/info/list',
    method: 'get',
    params: query
  })
}

/**
 * 新建飘降模拟
 * @param {*} query 
 * @returns 
 */
export function getFallImitateResult(query) {
  return request({
    url: '/algorithm/descend/get',
    method: 'get',
    params: query
  })
}

/**
 * 获取飘降路径
 * @param {*} query 
 * @returns 
 */
export function getFallRouteData(query) {
  return request({
    url: '/algorithm/descend/getAiData',
    method: 'get',
    params: query
  })
}

